PARSER_INCLUDES += -I $(OCAMLLIB)/camlp5
# OCaml parser call with flags
AM_P5FLAGS := -pp "$(CAMLP5O) $(PARSER_INCLUDES) pa_log.cmo $(LOG)"

.PHONY: doc

doc:
	test -d html || mkdir html
	$(OCAMLDOC) -short-functors $(MODULE_INCLUDES) $(P5FLAGS) -d html -html \
	-I $(top_srcdir)/src $(top_srcdir)/src/*.mli 
	if [ -f $(top_srcdir)/src/style.css ] ; then cp $(top_srcdir)/src/style.css html/ ; fi


# default clean
clean-am:
	rm -fR html/*.html html/*.css
